{include file='header'}
<link rel="stylesheet" href="__PUBLIC__css/list.css">
{include file='nav-course'}
<div class="page-containe">
	{include file='index/nav-left'}
	<div class="page-content">
		<div class="breadcrumb">
			<i class="iconfont icon-shouye"></i>
			<em>•</em>
			<a href="/">首页</a>
		</div>
		<div class="title">
			<h1>{$navData.nav_name}</h1>
			<p>{$pointSum}个可获得的掌握点</p>
		</div>
		<div class="stage">
			{foreach $typeData as $key=>$type}
			<div class="item {if $lastLog['type_id'] eq $type['type_id']}active{/if}">
				<div class="hd">
					<div class="icon"><i class="iconfont icon-{$navData.nav_icon}"></i></div>
					<div class="stage-title">
						{if $lastLog['type_id'] eq $type['type_id']}
						<p>上次已学到：</p>
						{/if}
						<h3><a href="/course/{$navData.nav_id}/{$type.type_id}.html">阶段{$key+1}：{$type.type_name}</a></h3>
					</div>
					<div class="layui-progress progress">
						<div class="layui-progress-bar" lay-percent="{$type.userPoints} / {$type.points}"></div>
					</div>
				</div>
				<ul>
					{if $type.s}{foreach $type.s as $s}
					<li><a href="/course/{$navData.nav_id}/{$type.type_id}.html#{$s.s_id}">{$s.s_name|ltrim=###,'第'}</a></li>
					{/foreach}{/if}
				</ul>
				{if $lastLog['type_id'] eq $type['type_id']}
				<div class="btn">
					<a href="/learnings/{$lastLog.course_id}.html">继续学习</a>
				</div>
				{/if}
			</div>
			{/foreach}
			<div class="item course-challenge">
				<h4>课程挑战</h4>
				<p>测试您对本单元中所有知识点的了解。</p>
				<div class="btn"><a href="#">开始课程挑战</a></div>
			</div>
		</div>
	</div>
</div>
{include file='footer'}
<script type="text/javascript" src="__PUBLIC__js/list.js"></script>
